<!DOCTYPE html>
<style>
#target {
    position: relative;
    outline: medium solid black;
}
</style>
<span id="target">
    <div>Content 1</div>
    <span></span>
    <div>Content 2</div>
</span>